// 函数声明法
function add(n1: number, n2: number): number {
  return n1 + n2
}

// 字面量声明法
let add2 = function(n1: number, n2: number): number {
  return n1 + n2
}

// 箭头函数
let add3 = (n1: number, n2: number): number => n1 + n2

console.log(add(1, 2))
console.log(add2(2, 2))
console.log(add3(3, 2))


export {}